
<p>
  <strong><%= comment.name %>:</strong>
  <%= comment.body %>
</p>
<% if current_user%>
  <% if current_user.id == comment.user_id %>
    <p>

      <%= link_to '删除评论', [comment.article, comment],
                  method: :delete,
                  data: { confirm: 'Are you sure?' } %>
    </p>
  <% end %>
<% end %>